//
//  OBMomentItemViewModel.h
//  WeChat
//
//  Created by 黄柳姣 on 2018/5/2.
//  Copyright © 2018年 obally. All rights reserved.
//  单条说说视图模型

#import <Foundation/Foundation.h>
#import "OBMomentModel.h"
#import "OBMomentPhotoItemViewModel.h"
#import "OBMomentCommentItemViewModel.h"
@interface OBMomentItemViewModel : NSObject
/// 说说模型
@property (nonatomic, readwrite, strong) OBMomentModel *moment;
/// 昵称布局
@property (nonatomic, readwrite, strong) YYTextLayout *nickNameLableLayout;
/// 正文布局
@property (nonatomic, readwrite, strong) YYTextLayout *contentLableLayout;
/// 配图
@property (nonatomic, readwrite, copy) NSArray <OBMomentPhotoItemViewModel *> *picInfos;

/// 点赞+评论列表 （设计为 可变数组 后期需要添加东西）
@property (nonatomic, readonly, strong) NSMutableArray *dataSource;
/// 辅助属性
/// 是否展开全文
@property (nonatomic, readwrite, assign , getter = isExpand) BOOL expand;

/// ==== Frame Properties ====
/// 头像
@property (nonatomic, readwrite, assign) CGRect avatarViewFrame;
/// 昵称
@property (nonatomic, readwrite, assign) CGRect screenNameLableFrame;
/// 正文
@property (nonatomic, readwrite, assign) CGRect contentLableFrame;
/// 全文/收起 按钮
@property (nonatomic, readwrite, assign) CGRect expandBtnFrame;
/// 配图View
@property (nonatomic, readwrite, assign) CGRect photosViewFrame;

/// 箭头
@property (nonatomic, readwrite, assign) CGRect upArrowViewFrame;

/// 整个header的高度
@property (nonatomic, readwrite, assign) CGFloat height;

/// 展开全文/收起
@property (nonatomic, readonly, strong) RACCommand *expandOperationCmd;
/// 事件处理
/// 刷新某一个section的 事件回调
@property (nonatomic, readwrite, strong) RACSubject *reloadSectionSubject;
/// 富文本文字上的事件处理
@property (nonatomic, readwrite, strong) RACCommand *attributedTapCommand;
/// init
- (instancetype)initWithMoment:(OBMomentModel *)moment;
@end
